package com.fzj.wxpay_demo.controller;

import com.fzj.wxpay_demo.config.WxPayConfig;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.service.Tags;

@Api(tags="测试")
@RequestMapping("/v1/test")
@RestController
public class TestController {
    @Autowired
    private WxPayConfig wxPayConfig;

    @ApiOperation("测试接口")
    @GetMapping("test1")
    public String getWxPayConfig(){
        String mchId = wxPayConfig.getMchId();
        return mchId;
    }
}
